package com.chaoyi.dao.mysql;

import com.chaoyi.model.Classification;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: 卜加超
 * @Date: 2018/12/25 15:13
 * @Description:
 */
public interface ClassificationMapper {
    int findCount(@Param("classification")Classification classification);

    List<Classification> findList(@Param("pageStat")int offset,
                               @Param("pageStop")int limit,
                               @Param("classification")Classification classification);

    int save(@Param("obj")Classification entity);

    int deleteClassification(@Param("id")int id);

    int edit(@Param("obj")Classification entity);

    Classification findClassificationOne(@Param("id")int id);

    List<Map<String,Object>> getClassificationList(@Param("obj")Classification entity);

    List<Classification> selectClassficationList();
}
